package com.lvt.example.thinking.in.spring.questions.L20.bean.dependcy;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * desc：ValueTestController
 *
 * @author LT
 * @date 2022/10/16
 */
@RestController
public class ValueTestController {

    @Value("${username}")
    private String userName;

    @Value(("${password}"))
    private String passWord;

    @GetMapping("user")
    public String testValue() {
        return userName+":"+passWord;

    }

}
